/[svn]/libgig/trunk/src/gig.cpp
ViewVC logotype

Diff of /libgig/trunk/src/gig.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1207 by persson, Sat May 26 13:59:40 2007 UTC revision 1218 by persson, Fri Jun 1 19:19:28 2007 UTC
# Line 362  namespace { Line 362  namespace {
362              Manufacturer  = 0;              Manufacturer  = 0;
363              Product       = 0;              Product       = 0;
364              SamplePeriod  = uint32_t(1000000000.0 / SamplesPerSecond + 0.5);              SamplePeriod  = uint32_t(1000000000.0 / SamplesPerSecond + 0.5);
365              MIDIUnityNote = 64;              MIDIUnityNote = 60;
366              FineTune      = 0;              FineTune      = 0;
367              SMPTEFormat   = smpte_format_no_offset;              SMPTEFormat   = smpte_format_no_offset;
368              SMPTEOffset   = 0;              SMPTEOffset   = 0;
# Line 1420  namespace { Line 1420  namespace {
1420              LFO1ControlDepth                = 0;              LFO1ControlDepth                = 0;
1421              LFO3ControlDepth                = 0;              LFO3ControlDepth                = 0;
1422              EG1Attack                       = 0.0;              EG1Attack                       = 0.0;
1423              EG1Decay1                       = 0.0;              EG1Decay1                       = 0.005;
1424              EG1Sustain                      = 0;              EG1Sustain                      = 1000;
1425              EG1Release                      = 0.0;              EG1Release                      = 0.3;
1426              EG1Controller.type              = eg1_ctrl_t::type_none;              EG1Controller.type              = eg1_ctrl_t::type_none;
1427              EG1Controller.controller_number = 0;              EG1Controller.controller_number = 0;
1428              EG1ControllerInvert             = false;              EG1ControllerInvert             = false;
# Line 1437  namespace { Line 1437  namespace {
1437              EG2ControllerReleaseInfluence   = 0;              EG2ControllerReleaseInfluence   = 0;
1438              LFO1Frequency                   = 1.0;              LFO1Frequency                   = 1.0;
1439              EG2Attack                       = 0.0;              EG2Attack                       = 0.0;
1440              EG2Decay1                       = 0.0;              EG2Decay1                       = 0.005;
1441              EG2Sustain                      = 0;              EG2Sustain                      = 1000;
1442              EG2Release                      = 0.0;              EG2Release                      = 0.3;
1443              LFO2ControlDepth                = 0;              LFO2ControlDepth                = 0;
1444              LFO2Frequency                   = 1.0;              LFO2Frequency                   = 1.0;
1445              LFO2InternalDepth               = 0;              LFO2InternalDepth               = 0;
1446              EG1Decay2                       = 0.0;              EG1Decay2                       = 0.0;
1447              EG1InfiniteSustain              = false;              EG1InfiniteSustain              = true;
1448              EG1PreAttack                    = 1000;              EG1PreAttack                    = 0;
1449              EG2Decay2                       = 0.0;              EG2Decay2                       = 0.0;
1450              EG2InfiniteSustain              = false;              EG2InfiniteSustain              = true;
1451              EG2PreAttack                    = 1000;              EG2PreAttack                    = 0;
1452              VelocityResponseCurve           = curve_type_nonlinear;              VelocityResponseCurve           = curve_type_nonlinear;
1453              VelocityResponseDepth           = 3;              VelocityResponseDepth           = 3;
1454              ReleaseVelocityResponseCurve    = curve_type_nonlinear;              ReleaseVelocityResponseCurve    = curve_type_nonlinear;
# Line 2973  namespace { Line 2973  namespace {
2973          // order (INFO chunk will be moved to first position later)          // order (INFO chunk will be moved to first position later)
2974          pRIFF->AddSubChunk(CHUNK_ID_VERS, 8);          pRIFF->AddSubChunk(CHUNK_ID_VERS, 8);
2975          pRIFF->AddSubChunk(CHUNK_ID_COLH, 4);          pRIFF->AddSubChunk(CHUNK_ID_COLH, 4);
2976            pRIFF->AddSubChunk(CHUNK_ID_DLID, 16);
2977    
2978            GenerateDLSID();
2979      }      }
2980    
2981      File::File(RIFF::File* pRIFF) : DLS::File(pRIFF) {      File::File(RIFF::File* pRIFF) : DLS::File(pRIFF) {
# Line 3169  namespace { Line 3172  namespace {
3172    
3173         // add mandatory chunks to get the chunks in right order         // add mandatory chunks to get the chunks in right order
3174         lstInstr->AddSubList(LIST_TYPE_INFO);         lstInstr->AddSubList(LIST_TYPE_INFO);
3175           lstInstr->AddSubChunk(CHUNK_ID_DLID, 16);
3176    
3177         Instrument* pInstrument = new Instrument(this, lstInstr);         Instrument* pInstrument = new Instrument(this, lstInstr);
3178           pInstrument->GenerateDLSID();
3179    
3180         lstInstr->AddSubChunk(CHUNK_ID_INSH, 12);         lstInstr->AddSubChunk(CHUNK_ID_INSH, 12);
3181    

Legend:
Removed from v.1207  
changed lines
  Added in v.1218

  ViewVC Help
Powered by ViewVC