enable / disable from command prompt

9 posts / 0 new
Last post
nimikipod
nimikipod's picture
Joined: December 4, 2009

hey,

i'm a new user and let me say: this is a great app !!

i wonder if there is any way to remote control the app from the command line. can i do it ?

i need:

1. enable / disable audio

2. enable / disable audio out / auxout1 / auxout2 / auxout3 etc...

3. controlling volume ?

is it possible ?

is there a 3rd party software that could do this ?

thanks.

nimikipod
nimikipod's picture
Joined: December 4, 2009

anyone ? please ?

Ross B.
Ross B.'s picture
Joined: April 11, 2009

I'm not sure exactly what you are trying to achieve. It might be helpful to describe the end result you're looking for.

You can arrange for audio and MIDI (and some other things) to be enabled when AudioMulch starts. Just go to Edit > Settings > Startup Actions and choose the options you need. You can get it to load a specific document at startup too.

You can control the volume and and any other parameters you like using the MIDI control features.

-- Ross.

nimikipod
nimikipod's picture
Joined: December 4, 2009

thanks ross..

my aim is to control audiomulch while i'm using a frontend of some sorts, like centrafuse.

i know for a fact this feature will be added to the next revision of console and i weanted to know if that will also be the case for audiomulch which i like very much.

the idea id that can type something like: c:\auxout1 /off and it will work..

thanks

Ross B.
Ross B.'s picture
Joined: April 11, 2009

I can't say command line control is a near-term prospect for AudioMulch.

If I added something like this in the future it would use Open Sound Control -- which would also support control from a remote computer, and would work with many scripting languages. Perhaps Centrafuse can send OSC even.

For now, probably the best option is as I said previously, a combination of Startup Actions and MIDI -- you should be able to find a command line app to generate MIDI and then you could route this into AudioMulch if you need to. Another alternative would be to find a program which automates clicks and keypresses.

-- Ross

nimikipod
nimikipod's picture
Joined: December 4, 2009

Thanks for the fast reply..

i'm familiar with autoit (as do all carpc user's i think..)

i'm currently using audiomulch as an active crossover. i'm doing that with asio4all. are you saying i can remote control the outputs/inputs/volume ect. with a midi ? how exactly can it be done ?

i'm sorry for the dumb question but i'm a noob when it comes to professional audio.

Ross B.
Ross B.'s picture
Joined: April 11, 2009

If you connect a Gain contraption you can set up a MIDI controller to control the volume. All knobs/sliders etc in AudioMulch can be controlled from MIDI. You can control multiple knobs from one MIDI CC value so its possible to set up multiple Gain contraptions if you need to for multi-channel audio.

I'm not sure what it is about the inputs and outputs you want to control. Let me know more details and I might have a better suggestion, but if you want to switch routings on the fly probably the best thing would be to use a 8x8Matrix contraption and then store presets for the different routings you need. Then you can switch routings via MIDI.

There are instructions in the help file for MIDI cpntrol, and we should be releasing a tutorial video soon. The current help file is a little confusing (makes it seem more complicated than it is) and we're working on revising that. So, feel free to ask questions if you can't nut it out.

Hope that helps.

nimikipod
nimikipod's picture
Joined: December 4, 2009

let me explain what it is that i'm using audiomulch for..

i'm using a 3rd party software called centrafuse that plays audio to VAC (virtual audio cable). the singal from the vac is then captured by asio4all and placed as the SOUNDIN in audiomulch. the signal is then routed through several vst plugins (like rubber filter / ik arc / eq31 etc..) and then routed by audiomulch to my 8 analog preouts on the ASUS HDAV 1.3 soundcard.

doing that i'm able to process an active crossover for a 3way front soundstage + low pass.

now, what i need is to control several aspects of those SOUNDOUT/AUXOUT/AUXOUT1 etc.., such as turning the entire preout on and off and maybe even have some sort of a gain control. as you can probably understand i need to perform these actions without leaving the centrafuse frontend soo i need some sort of remote control.

please help...

Ross B.
Ross B.'s picture
Joined: April 11, 2009

I'm not quite sure why you want to turn the outputs completely off -- do you need AM to actually close the device for some reason, or is it OK to just send silence to the outputs you're not interested in?

If you just want to mute sound going out of them then I recommend using Gain contraptions in AudioMulch and controlling the mutes via MIDI. If you need different setups with different AM AuxOut contraptions then switching documents using the AM Document Switcher (also via MIDI) is also an option.

As far as sending MIDI from the command line, the sendmidi command in Div's MIDI Utilities should do the trick:
http://public.sreal.com:8000/~div/midi-utilities/
(I found this by googling for "send midi from command line" by the way)

Combine that with MIDI Yoke (http://www.midiox.com/) which is similar to VAC except for MIDI -- it will let you route MIDI from sendmidi into AM (just set up the correct MIDI control devices in AM).

sendmidi -> MIDI Yoke -> AM

setup MIDI in AM

- Make sure you have a MIDI Yoke device selected in AM settings
- Enable MIDI control in the toolbar (enable Audio too)
- Set up a gain contraption in AM to control the volume of your output
- Right-click on the Gain's volume knob and choose "Quick-map MIDI"
(it will display the quick-map-midi dialog, here you can either choose the MIDI message you want to recieve, or just send it from sendmidi and AM will pick it up)

now get sendmidi to send a CC message to AM:

C:\> sendmidi --out ?port? --control-change 1 1 127

You'll have to work out how to specify the port (looks like there is another program in that MIDI utilities thing to list ports). The control change message specifies a channel, controller number and value:
--control-change ?channel? ?number? ?value?

there are 16 channels and 127 controller numbers. You could use each one for a different knob (or control all knobs from a single controller if you want them all to move together). the value ranges from 0 to 127 -- usually this would map to the full range of the knob in AM (or for a mute button 0 would be off, and 127 would be on). If you need more fine grained control over the mapping, the View > Parameter Control window gives you control over ranges, thresholds and mapping curves.

If you want to switch documents from MIDI then you can use the same idea except you need to MIDI control AM's document switcher. The MIDI control setting for that is in Edit > Settings > Document Switcher

I think that should give you what you want.