BelaPlatform / supercollider

an environment and programming language for real time audio synthesis and algorithmic composition
GNU General Public License v3.0
14 stars 8 forks source link

Forwarding command-line options to the Bela core #12

Closed giuliomoro closed 7 years ago

giuliomoro commented 8 years ago

in order to, e.g.: set headphones level or audio input gain

sensestage commented 7 years ago

arguments to add:

/// Whether to begin with the speakers muted
int beginMuted;
/// Level for the audio DAC output
float dacLevel;
/// Level for the audio ADC input
float adcLevel;
/// Gains for the PGA, left and right channels
float pgaGain[2];
/// Level for the headphone output
float headphoneLevel;
/// How many channels to use on the multiplexer capelet, if enabled
int numMuxChannels;
sensestage commented 7 years ago

headphone and pgaGain have been added via https://github.com/sensestage/supercollider/commit/b6fc1ef3667ab2406f84f6f3ff807246cd63b482

giuliomoro commented 7 years ago

great, I was wondering if it would be easier to just set something like --bela-options "" and forward to Bela_getopt_long(), similarly to what is done here. This would require zero effort in the future to add new options. Do you see any drawbacks?

sensestage commented 7 years ago

I think it is a great idea!

sensestage commented 7 years ago

See also #21

sensestage commented 7 years ago

Fixed via: 997f6253315eef97e554f9571f50cb22b8418ce0 (the other issue stays open for the new option passing)