|
Home | Forums | Rules | Articles | diyAudio Store | Blogs | Gallery | Wiki | Register | Donations | FAQ | Calendar | Mark Forums Read |
PC Based Computer music servers, crossovers, and equalization |
|
Please consider donating to help us continue to serve you.
Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving |
![]() |
|
Thread Tools |
![]() |
#1 |
diyAudio Member
Join Date: Nov 2020
|
![]()
I'm trying to get ecasound running as a multitrack player that allows me to selectively mute/unmute tracks remotely while it is playing. I've got it pretty close to working, but am stuck on one issue. Right now, I am able to get ecasound to start playing two mono tracks (sent equally to both L and R speakers), via
Code:
ecasound -a:1 -i track1.wav -erc:1,2 -epp:50 -a:2 -i track2.wav -erc:1,2 -epp:50 -a:all -o:alsahw,2,0 --server which starts both tracks playing immediately, and then, in a second process, selectively mute or unmute one of the two tracks (chains?) via Code:
echo -e "c-select 1\r\nc-mute on\r\n" | nc -w1 localhost 2868 (this will mute chain 1, i.e. track 1, I can choose the track via the c-select command and the mute state via nc-mute) The problem I'm running into is that I'd like to start ecasound with all tracks muted, but playing, and only then start remotely unmuting selected tracks. I've tried adding -chmute:1 after -a:1 when starting ecasound for example, Code:
ecasound -a:1 -chmute:1 -i track1.wav -erc:1,2 -epp:50 -a:2 -i track2.wav -erc:1,2 -epp:50 -a:all -o:alsahw,2,0 --server and this will mute track 1, but I cannot unmute it via the remote process; it remains muted (note that the same remote unmute command will work if I start ecasound without any chmute and then mute track 1 remotely). So somehow -chmute is muting tracks in such a way that I cannot remotely unmute them. Any ideas? I don't want to start ecasound with everything unmuted and then remotely mute all; the remote interface latency is too slow. |
![]() |
![]() |
#2 |
diyAudio Member
Join Date: Apr 2017
|
There seems to be a -E option that should allow you to call the commands to mute all channels before playback starts.
|
![]() |
![]() |
#3 |
diyAudio Member
Join Date: Nov 2020
|
Thanks, that seems to be working!
Command line is now: ecasound -a:1 -i track1.wav -erc:1,2 -epp:50 -a:2 -i track2.wav -erc:1,2 -epp:50 -a:all -o:alsahw,2,0 --server -E "c-select 1; c-mute on; c-select 2; c-mute on" and my remote process is able to mute/unmute individual channels |
![]() |
![]() |
#4 |
diyAudio Member
Join Date: Nov 2020
|
As a follow-up to anyone interested, the remote muting/unmuting process seemed a little bit slow, but when I added "-b 64" to the ecasound command line to make the buffer smaller, the response to the remote process was much quicker.
|
![]() |
![]() |
#5 |
diyAudio Member
Join Date: Nov 2020
|
As part of this project I'm hoping to play back a MIDI file in sync with multitrack WAV playback (the MIDI is controlling some props using midimonster to convert to ArtNet data). Is ecasound capable of playing a MIDI file to a MIDI port? I've seen that it can play MIDI through Timidity to an audio output, but when I try to get it to play to a MIDI port ("ecasound -a:1 -i miditest1.mid -o:alsa -Md:alsaseq,129:0”), it will send a START and a STOP to the desired port (e.g. 129:0) but nothing from the file itself. Perhaps my syntax is wrong? Using aplaymidi to the port works correctly, but if I try to use aplaymidi and ecasound at the same time (e.g. running “ecasound XXXX & aplaymidi YYYY “) the sync is off (probably because ecasound takes longer to start). So can ecasound play MIDI to a port, or alternatively, is there a program similar to ecasound that can do so (but also do command-line multitrack WAV playback with server control of mute state)?
|
![]() |
![]() |
#6 |
diyAudio Member
Join Date: Nov 2020
|
Thanks to Joel Roth, author of nama, figured it out. Needed to run ecasound as a server, load up the chain setup, and then once loading is complete send it a "start" at the same time as starting some of the aplaymidi processes. Sync isn't perfect but I can probably fine tune some things and get it to where I want it.
|
![]() |
![]() |
Thread Tools | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
technics su-g 91 mute - how to un-mute | srinath | Solid State | 0 | 1st March 2015 10:59 PM |
Linux + MPD player + dsp crossover via ecasound | jplesset | PC Based | 11 | 15th September 2013 11:24 PM |
how to unmute LM3886 ? | navZ | Chip Amps | 33 | 1st July 2013 07:56 PM |
Can't get TDA7266 to unmute | fretless123 | Chip Amps | 1 | 18th October 2012 09:36 AM |
please help - no mute but did mute mod - tda1541 | loomis | Digital Source | 1 | 14th November 2002 11:54 AM |
New To Site? | Need Help? |