Csound Csound-dev Csound-tekno Search About

[Csnd] multichannel feature request for soundin

Date2011-03-29 14:53
FromEric Lyon
Subject[Csnd] multichannel feature request for soundin
Greetings,

Currently, soundin can only read 24 channels from a sound file. As I understand it, there is no defined limit to the number of channels that may be interleaved in an AIFF sound file. May I suggest that the channel capacity for soundin be greatly expanded? Off-the-cuff I'd suggest that the limit be set to 8192 channels for now (though that's arbitrary - perhaps someone can think of reasons for a higher limit). If it's possible to rewrite soundin so that there's no channel limit, that would be even better.

The outch opcode model is excellent. It would be very useful to have a soundinch opcode that only reads specific channels from a multichannel sound file.

Thanks for considering it.

Eric



Date2011-03-31 11:58
FromEric Lyon
Subject[Csnd] Re: multichannel feature request for soundin
I somehow managed to overlook the "inch" opcode which appears to provide a solution with multiple accesses to the same file. Meanwhile, it looks like soundin and diskin2 could be updated as simply as giving them more input parameters in entry1.c where more "m"s could do the trick. 

Eric

{ "soundin",S(SOUNDIN_),5,"mmmmmmmmmmmmmmmmmmmmmmmm","Toooo",

                                                sndinset, NULL, soundin   },


{ "diskin",S(SOUNDINEW),5"mmmmmmmmmmmmmmmmmmmmmmmm", "Tkooooo",

                            (SUBR) newsndinset, NULL, (SUBR) soundinew  },

{ "diskin2",S(DISKIN2), 5"mmmmmmmmmmmmmmmmmmmmmmmm", "Tkoooooo",

                            (SUBR) diskin2_init, (SUBR) NULL,

                            (SUBR) diskin2_perf                         },



(Actually, diskin2.h has a hardcoded channel limit that would need to be updated too.)

#define DISKIN2_MAXCHN  24              /* for consistency with soundin   */



On Tue, Mar 29, 2011 at 2:53 PM, Eric Lyon <audiodidact@gmail.com> wrote:
Greetings,

Currently, soundin can only read 24 channels from a sound file. As I understand it, there is no defined limit to the number of channels that may be interleaved in an AIFF sound file. May I suggest that the channel capacity for soundin be greatly expanded? Off-the-cuff I'd suggest that the limit be set to 8192 channels for now (though that's arbitrary - perhaps someone can think of reasons for a higher limit). If it's possible to rewrite soundin so that there's no channel limit, that would be even better.

The outch opcode model is excellent. It would be very useful to have a soundinch opcode that only reads specific channels from a multichannel sound file.

Thanks for considering it.

Eric