From the original SynthMaker forum (2004–2014), with its members’ names and dates.
SBMastering ·
Is there a way to allow the user to select among their soundcard inputs?
I am working to make and SPL meter. A measurement mic would be connected to the audio interface and a meter would be displayed showing the input levels. A user might have various audio interface inputs, so I would like for them to be able to select their input.
infuzion ·
Search in the box above the Toolbox in SM for MIDI.
philter5 ·
infuzion wrote: Search in the box above the Toolbox in SM for MIDI.
....if you are looking for Audio In/out Selector you have to search for "device"in the toolbox.
or search the forum for Audio Device Selector, there are some examples available that store the last choosen settings for the next start
trogluddite ·
To select between the different inputs of a single multi-in/out soundcard, you can just use regular selectors and multiplexers - however, you may encounter a slight problem here.
You will have to create the schematic on an SM machine that has a big soundcard!
SM cannot dynamically alter the schematic to account for the differing number of connectors on each user's soundcard. So if you create your schematic on a machine with only stereo connections, there will only ever be a choice of two inputs, even for users of larger systems.
If you build the schematic on a machine with lots of I/O, you can create it with a big switching matrix that can access all of them - and the exported file will remember this and retain all of those options (users of stereo cards can then select inputs one or two - but will always see the longer list even though they don't have the I/O).
As an example, take a look at my 'EXE Setup Window'' design - this makes a pop-up window for making soundcard settings (remembered in a file between sessions). It was built on a system with 32 I/O ports (you will see this on loading - but the 'non-existent' ports will grey out when it is activated). It works OK on all the 'smaller' systems that I have tried it on. Had my install of SM been on a 'lesser' audio system, I would not have been able to create it - as there would have not been enough connectors on the 'ASIO' primitives to have anything to join the other components up with.
If that design suits your purpose, please feel free to use it - just delete the 'INI Variable' and 'Preset Manager' modules if you don't need them (the Manager is of no use in an .exe export anyway, it's only for plugins).
infuzion ·
Trog, are you saying my idea doesn't work?
I'm OK with being wrong, but have you tried it?
trogluddite ·
infuzion wrote: Trog, are you saying my idea doesn't work?
Erm, I'm not quite sure what your idea was, you only said...
infuzion wrote: Search in the box above the Toolbox in SM for MIDI
...of course, the first part, "search", is always good advice! - but "MIDI" doesn't seem quite right for a question about audio switching.
The main reason I posted, was that the OP was unclear whether it was selecting a different audio Device, or just between multiple inputs of a single device. The schematic I pointed to is probably overkill in this situation, and may need simplifying, but it does allow for both of those options (and MIDI too!). I assume here that the final output would be an .exe, as for a VST, all of this would be much easier done using the host's routing..
Wrote something here? To have a post removed or your name hidden, write to [email protected].