Effect visualisation through the C++ effect, engine and AU; custom wavetables and grain sources load and persist with the song; the app's slot editor hosts the file picker for bespoke views. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
1.4 KiB
Objective-C
31 lines
1.4 KiB
Objective-C
// SPDX-FileCopyrightText: 2026 Reactorcoremeltdown
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#import "SizzleDeviceAU.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/// What the Wavetable's and the Grain Cloud's editors draw in a plug-in: the
|
|
/// built-in tables and sources (made in code, no sample store needed). Custom
|
|
/// tables and sources need the Sizzle app's sample store for now.
|
|
@interface SizzleDeviceAU (Sources)
|
|
|
|
/// Factory wavetable [name], level 0 ([frames] x [size] floats), or nil while the
|
|
/// factory set isn't built: building then starts in the background (ask again), or,
|
|
/// with [blocking], happens now on this thread (the Mac snapshot tools).
|
|
+ (nullable NSData *)factoryWavetableNamed:(NSString *)name blocking:(BOOL)blocking
|
|
frames:(NSInteger *)frames size:(NSInteger *)size
|
|
NS_SWIFT_NAME(factoryWavetable(named:blocking:frames:size:));
|
|
|
|
/// Peak envelope (|x| max per bucket, 0..1, [buckets] floats) of the Grain Cloud's
|
|
/// built-in source [name], or nil (unknown, or not rendered yet: as above).
|
|
+ (nullable NSData *)grainSourcePeaksNamed:(NSString *)name buckets:(NSInteger)buckets blocking:(BOOL)blocking
|
|
NS_SWIFT_NAME(grainSourcePeaks(named:buckets:blocking:));
|
|
|
|
/// Length in seconds of built-in source [name], or 0 while it isn't rendered.
|
|
+ (double)grainSourceSecondsNamed:(NSString *)name NS_SWIFT_NAME(grainSourceSeconds(named:));
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|