Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| blocks:app-note:ltc_timecode [2025-04-29 05:56] – mattias | blocks:app-note:ltc_timecode [2025-05-06 10:59] (current) – [Make multiple Timecode readers autostart] mattias | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| ===Find out the ALSA name of the sound device=== | ===Find out the ALSA name of the sound device=== | ||
| To capture the desired device we must figure out the ALSA name of the usb-device. To do so we open the terminal as the pixi-server user and type: | To capture the desired device we must figure out the ALSA name of the usb-device. To do so we open the terminal as the pixi-server user and type: | ||
| - | < | + | < |
| Look for an entry like: | Look for an entry like: | ||
| < | < | ||
| Line 81: | Line 81: | ||
| ===Configure the driver=== | ===Configure the driver=== | ||
| - | You must configure the driver | + | You must configure the driver |
| A. Set the ' | A. Set the ' | ||
| Line 117: | Line 117: | ||
| ====Make multiple Timecode readers autostart==== | ====Make multiple Timecode readers autostart==== | ||
| + | :!: **IMPORTANT: | ||
| - | If we want to read more than one LTC timesource we would typically need to duplicate and change the unit files in order to be able to do so. | + | < |
| - | We can rewrite | + | To read more than one LTC timecode source you could duplicate and modify |
| - | Rename the unit file like this: | + | **1.** |
| < | < | ||
| - | Edit the unit template. | + | **2.** |
| < | < | ||
| - | Use this unit configuration: | + | Using this configuration: |
| < | < | ||
| [unit] | [unit] | ||
| Line 145: | Line 145: | ||
| </ | </ | ||
| - | Rename the config: | + | **3.** |
| < | < | ||
| - | Make as many copies as you want instances: | + | **4.** |
| < | < | ||
| + | **5.** Edit the config files, specifying different audio interfaces and different network ports in each instance. | ||
| + | < | ||
| - | Edit the config files as in the single instance case above. Make sure to specify a different audio interface anddifferent | + | The configuraition file will look something like this (but with your device name and desired |
| - | < | + | |
| < | < | ||
| # Options to pass to the timecode-reader program, e.g., | # Options to pass to the timecode-reader program, e.g., | ||
| - | # TIMECODE_READER_OPTIONS=-d "Alsa device name"§ -p "UDP port" | + | # TIMECODE_READER_OPTIONS=-d "Alsa device name" -p "UDP port" |
| - | TIMECODE_READER_OPTIONS=-d plughw: | + | TIMECODE_READER_OPTIONS=-d plughw: |
| </ | </ | ||
| - | Efter any unit change make sure to reinitizialize | + | **6.** Notify |
| < | < | ||
| systemctl --user daemon-reload </ | systemctl --user daemon-reload </ | ||
| - | Enable (autostart) | + | **7.** Finally, enable |
| < | < | ||
| systemctl --user enable --now timecode-reader@alpha.service | systemctl --user enable --now timecode-reader@alpha.service | ||
| systemctl --user enable --now timecode-reader@beta.service | systemctl --user enable --now timecode-reader@beta.service | ||
| </ | </ | ||