summaryrefslogtreecommitdiff
path: root/synth/main.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@thinkpad.(none)>2011-01-10 20:20:10 +0100
committerFlorian Jung <flo@thinkpad.(none)>2011-01-10 20:20:10 +0100
commite32591388a18c8226e61b8f88b031ed7c88ca153 (patch)
tree999f6653d0cfac3153679a8352c28f4e92805306 /synth/main.cpp
parentb34cab5dd6d4ac16a6a58589397a3d82df38b826 (diff)
Improved in-synth-cli, still TODO
The CLI can now prepare loading a note without actually loading it
Diffstat (limited to 'synth/main.cpp')
-rw-r--r--synth/main.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/synth/main.cpp b/synth/main.cpp
index 8bcfe39..d063d41 100644
--- a/synth/main.cpp
+++ b/synth/main.cpp
@@ -14,6 +14,7 @@
#include "globals.h"
#include "note_loader.h"
#include "in_synth_cli.h"
+#include "communication.h"
using namespace std;
@@ -24,6 +25,8 @@ void dump_options();
int main(int argc, char** argv)
{
+ init_communication();
+
for (int i=0;i<N_LFOS;i++)
lfo_freq_hz[i]=0;
@@ -103,6 +106,8 @@ int main(int argc, char** argv)
for (i=0;i<128;i++)
{
+ program_lock[i]=false;
+
if (programfile[i]!="")
{
try
@@ -177,7 +182,9 @@ int main(int argc, char** argv)
void cleanup()
{
exit_jack();
-
+
+ uninit_communication();
+
for (int i=0;i<N_CHANNELS;i++)
{
delete channel[i];