signalflow icon indicating copy to clipboard operation
signalflow copied to clipboard

Multichannel Buffer?

Open jarmitage opened this issue 1 year ago • 1 comments

    audio_buf = Buffer([audio_path])
                ^^^^^^^^^^^^^^^^^^^^
TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
    1. signalflow.Buffer()
    2. signalflow.Buffer(filename: str)
    3. signalflow.Buffer(num_channels: int, num_frames: int)
    4. signalflow.Buffer(num_channels: int, num_frames: int, data: List[List[float]])
    5. signalflow.Buffer(arg0: List[List[float]])
    6. signalflow.Buffer(data: List[float])
    7. signalflow.Buffer(function: Callable[[float], float])
    8. signalflow.Buffer(num_frames: int, function: Callable[[float], float])
    9. signalflow.Buffer(num_channels: int, num_frames: int, function: Callable[[float], float])

jarmitage avatar May 25 '24 16:05 jarmitage

Can you say more about what you're trying to accomplish? If you're looking to load a multichannel .wav, SignalFlow uses libsndfile beneath the hood, which can load multichannel audio files without issues. You can create multichannel Buffers by passing Buffer a list[list[float]], or numpy ndarray. Or maybe you're trying to do something else?

ideoforms avatar Jun 20 '24 21:06 ideoforms

Closing as I believe this is already supported with Buffer(num_channels, num_frames)

ideoforms avatar Nov 18 '24 17:11 ideoforms