unfinished work
[vg.git] / vg_audio_synth_bird.h
index 62c30e672c8a03c17792929e2c2ba38b0fe68b23..a43935493c66ee8529dfc0657c5c361db10da309 100644 (file)
@@ -8,8 +8,7 @@
  #define BIRD_SAMPLE_RATE 44100
 #endif
 
-struct synth_bird_signature
-{
+struct synth_bird_signature{
    float length, pause,  /* timings in seconds */
          x0,x1,x2,x3,    /* polynomial coefficients for the fundemental */
          v0,v1,v2,v3;    /* volume of each oscillator */
@@ -18,10 +17,8 @@ struct synth_bird_signature
    float fm;             /* LFO modulation depth (+/- hz) */
 };
 
-struct synth_bird
-{
-   struct
-   {
+struct synth_bird{
+   struct{
       int osc_main[4],
           osc_lfo;
       float volume[4];
@@ -39,15 +36,13 @@ struct synth_bird
    }
    rt;
 
-   struct synth_bird_settings
-   {
+   struct synth_bird_settings{
       int tones[4][2];        /* fraction of the fundemental tone
                                  for each oscillator */
       float adsr_rise,        /* rise/fall in seconds */
             adsr_fall;        
 
-      enum bird_lfo_wave
-      {
+      enum bird_lfo_wave{
          k_bird_lfo_sine_approx,
          k_bird_lfo_bipolar_poly
       }
@@ -260,6 +255,7 @@ static void synth_bird_save( struct synth_bird *bird, void *txt )
    vg_bin_str( src, txt, synth_bird_save_size( bird ) );
 }
 
+#if 0
 static void synth_bird_load( struct synth_bird *bird, 
                              const char *txt, u32 length )
 {
@@ -273,6 +269,7 @@ static u32 synth_bird_memory_requirement( u32 string_length )
    return (string_length/2) + 
             sizeof(struct synth_bird) - sizeof(struct synth_bird_settings);
 }
+#endif
 
 #ifdef SYNTH_BIRD_STDLIB
 #include "stdlib.h"