3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2008 Anders Dahnielson <anders@dahnielson.com> * |
* Copyright (C) 2008 Anders Dahnielson <anders@dahnielson.com> * |
6 |
* Copyright (C) 2009 - 2012 Anders Dahnielson and Grigor Iliev * |
* Copyright (C) 2009 - 2013 Anders Dahnielson and Grigor Iliev * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
322 |
volume_curvecc.clear(); |
volume_curvecc.clear(); |
323 |
volume_smoothcc.clear(); |
volume_smoothcc.clear(); |
324 |
volume_stepcc.clear(); |
volume_stepcc.clear(); |
325 |
|
amplitude = 100; |
326 |
pan = 0; |
pan = 0; |
327 |
pan_oncc.clear(); |
pan_oncc.clear(); |
328 |
pan_curvecc.clear(); |
pan_curvecc.clear(); |
639 |
region->volume_curvecc = volume_curvecc; |
region->volume_curvecc = volume_curvecc; |
640 |
region->volume_smoothcc = volume_smoothcc; |
region->volume_smoothcc = volume_smoothcc; |
641 |
region->volume_stepcc = volume_stepcc; |
region->volume_stepcc = volume_stepcc; |
642 |
|
region->amplitude = amplitude; |
643 |
region->pan = pan; |
region->pan = pan; |
644 |
region->pan_oncc = pan_oncc; |
region->pan_oncc = pan_oncc; |
645 |
region->pan_curvecc = pan_curvecc; |
region->pan_curvecc = pan_curvecc; |
894 |
|
|
895 |
// DEFINITION |
// DEFINITION |
896 |
std::stringstream linestream(line); |
std::stringstream linestream(line); |
|
linestream >> std::noskipws; |
|
897 |
int spaces = 0; |
int spaces = 0; |
898 |
while (linestream >> token) |
while (linestream >> token) |
899 |
{ |
{ |
900 |
|
linestream >> std::noskipws; |
901 |
if (token[0] == '<' && token[token.size()-1] == '>') |
if (token[0] == '<' && token[token.size()-1] == '>') |
902 |
{ |
{ |
903 |
// HEAD |
// HEAD |
1397 |
|
|
1398 |
// amplifier |
// amplifier |
1399 |
else if ("volume" == key) pCurDef->volume = ToFloat(value); |
else if ("volume" == key) pCurDef->volume = ToFloat(value); |
1400 |
|
else if ("amplitude" == key) pCurDef->amplitude = ToFloat(value); |
1401 |
else if ("pan" == key) pCurDef->pan = ToFloat(value); |
else if ("pan" == key) pCurDef->pan = ToFloat(value); |
1402 |
else if ("width" == key) pCurDef->width = ToFloat(value); |
else if ("width" == key) pCurDef->width = ToFloat(value); |
1403 |
else if ("position" == key) pCurDef->position = ToFloat(value); |
else if ("position" == key) pCurDef->position = ToFloat(value); |