I have build using PIC 18F2455 microprocessor a “show controller” with 8 outputs
I edit the show with audacity. One channel contains the music/speech. The other channel contains pulse sequences. The show controler decodes these pulse sequences to switch the 8 outputs.
Since the controller has 8 output channels i have 256 different pulse sequences. Each puls sequence takes about 50 msec.
For editing the show I just select copy paste the wanted pulse sequence to the wanted track.
This works OK. I export my show to MP3 and I can reproduce the show on a standalone MP3 player or other PC
However editing using this manual proces select copy paste work is tedious. I need to find the correct waveform and manually select copy past.
When I use the Audacity import feature a puls sequence gets pasted at a new lower track and not directly in the channel I want and at the time I want.
Basicly I want to insert a waveform out of list of 256 waveform files based on a filename that is copied right away at the position I want at the channel I want.
For your information. The pulse sequence contains 2 start pulses 8 datapulses and 2 end pulses.
Note that MP3 is a lossy format, so converting to MP3 will lose some precision in your signals,
Also, MP3s always have a little bit of leading silence.
During production of your signals, I would highly recommend that you stick with “lossless” formats such as WAV.
One way to append files end to end is to import the files (which creates a “stack” of tracks), then use “Tracks > Align Tracks > Align End to End”.
When the project is exported, the tracks are mixed down to a single file. Optionally you can use “Tracks > Mix and Render” to mix down before exporting.
Thanks, you seem to understand the feature I was looking for.
use “Tracks > Align Tracks > Align End to End”.
When the project is exported, the tracks are mixed down to a single file. Optionally you can use “Tracks > Mix and Render” to mix down before exporting.
This feature works Ok but is still tedious to me. Aren’t there Macro’s or something I could past directly were I want it? Not needing the Mix and rendering feature?
You are right about the MP3 lossy format. But it turned out that (somewhat to my surprise) this simple Show Controller could easily decode the MP3 stream containing the pulse sequence.
The idea is that a show could be played back on a cheap standolone MP3/DVD player using an USB or SD card.
With this design someone can switch electrical loads like lamps,motors, solenoids, animatronix, light effects, exibition displays at a prdefines time in sync with a sound track.
The “Mix and Render” step is not required. That’s just an optional step if you want to see the show as one track before you export.
All you need to do is:
Import the files
Align tracks end to end
Export
If you have many such projects to do, you could try writing a script to concatenate the files with SoX http://sox.sourceforge.net/