void SaveWTrack(struct WTracks *wtrack){ if(wtrack==NULL) return; DC_start("WTRACK"); DC_SaveN(wtrack->l.num); DC_SSI("notesonoff",wtrack->notesonoff); DC_SSI("notelength",wtrack->notelength); DC_SSI("fxwidth",wtrack->fxwidth); //DC_SSI("num_vel",wtrack->num_vel); DC_SSB("is_wide",wtrack->is_wide); DC_SSB("show_pianoroll",wtrack->pianoroll_on); DC_SSI("pianoroll_lowkey",wtrack->pianoroll_lowkey); DC_SSI("pianoroll_highkey",wtrack->pianoroll_highkey); DC_SSB("show_centtext",wtrack->centtext_on); DC_SSB("show_chancetext",wtrack->chancetext_on); DC_SSB("show_veltext",wtrack->veltext_on); DC_SSB("show_fxtext",wtrack->fxtext_on); DC_end(); SaveWTrack(NextWTrack(wtrack)); }
void SaveWTrack(struct WTracks *wtrack){ if(wtrack==NULL) return; DC_start("WTRACK"); DC_SaveN(wtrack->l.num); DC_SSI("notesonoff",wtrack->notesonoff); DC_SSI("notelength",wtrack->notelength); DC_SSI("fxwidth",wtrack->fxwidth); //DC_SSI("num_vel",wtrack->num_vel); DC_SSB("is_wide",wtrack->is_wide); DC_end(); SaveWTrack(NextWTrack(wtrack)); }
void SaveRoot(struct Root *theroot){ DC_start("ROOT"); // DC_SSN("def_instrument",theroot->def_instrument->l.num); DC_SSN("curr_block",theroot->curr_block); DC_SSI("tempo",theroot->tempo); DC_SSI("lpb",theroot->lpb); DC_SSI("signature_numerator",theroot->signature.numerator); DC_SSI("signature_denominator",theroot->signature.denominator); DC_SSI("quantitize_numerator",theroot->quantitize_options.quant.numerator); DC_SSI("quantitize_denominator",theroot->quantitize_options.quant.denominator); DC_SSF("quantitize",(double)theroot->quantitize_options.quant.numerator / (double)theroot->quantitize_options.quant.denominator); DC_SSI("grid_numerator",theroot->grid_numerator); DC_SSI("grid_denominator",theroot->grid_denominator); DC_SSI("keyoct",theroot->keyoct); DC_SSI("min_standardvel",theroot->min_standardvel); DC_SSI("standardvel",theroot->standardvel); SaveSong(theroot->song); DC_end(); }