-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from HEnquist/develop
Develop
- Loading branch information
Showing
6 changed files
with
158 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# play wav | ||
from camilladsp import CamillaConnection | ||
import sys | ||
import time | ||
|
||
try: | ||
port = int(sys.argv[1]) | ||
except: | ||
print("Usage: start CamillaDSP with the socketserver enabled:") | ||
print("> camilladsp -p4321 yourconfig.yml") | ||
print("Then read the signal level") | ||
print("> python read_rms.py 4321") | ||
sys.exit() | ||
|
||
cdsp = CamillaConnection("127.0.0.1", port) | ||
cdsp.connect() | ||
|
||
print("Reading playback signal RMS, press Ctrl+c to stop") | ||
while True: | ||
print(cdsp.get_playback_signal_rms()) | ||
time.sleep(1) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# play wav | ||
from camilladsp import CamillaConnection | ||
import sys | ||
import time | ||
|
||
try: | ||
port = int(sys.argv[1]) | ||
new_vol = float(sys.argv[2]) | ||
except: | ||
print("Usage: Make sure that your pipeline includes Volume filters for each channel.") | ||
print("Then start CamillaDSP with the websocket server enabled:") | ||
print("> camilladsp -p4321 yourconfig.yml") | ||
print("Then set the volume") | ||
print("> python read_rms.py 4321 -12.3") | ||
sys.exit() | ||
|
||
cdsp = CamillaConnection("127.0.0.1", port) | ||
cdsp.connect() | ||
|
||
current_vol = cdsp.get_volume() | ||
print(f"Current volume: {current_vol} dB") | ||
print(f"Changing volume to: {new_vol} dB") | ||
cdsp.set_volume(new_vol) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters