~ubuntu-branches/ubuntu/trusty/drumkv1/trusty-proposed

« back to all changes in this revision

Viewing changes to src/drumkv1_param.cpp

  • Committer: Package Import Robot
  • Author(s): Jaromír Mikeš
  • Date: 2014-01-23 02:26:10 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20140123022610-5wa7bbu2gvcm5gxm
Tags: 0.3.6-1
* Imported Upstream version 0.3.6
* Bump Standards.
* Patch refreshed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include "drumkv1_param.h"
23
23
 
24
24
#include <QDomDocument>
 
25
#include <QDir>
25
26
 
26
27
 
27
28
//-------------------------------------------------------------------------
95
96
        { "DEL1_DELAY",     0.5f },
96
97
        { "DEL1_FEEDB",     0.5f },
97
98
        { "DEL1_BPM",     180.0f },
 
99
        { "DEL1_BPMSYNC",   0.0f },
 
100
        { "DEL1_BPMHOST", 180.0f },
98
101
        { "DYN1_COMPRESS",  0.0f },
99
102
        { "DYN1_LIMIT",     1.0f }
100
103
};
194
197
                QDomElement eSample = doc.createElement("sample");
195
198
                eSample.setAttribute("index", 0);
196
199
                eSample.setAttribute("name", "GEN1_SAMPLE");
197
 
                eSample.appendChild(doc.createTextNode(
198
 
                        mapPath.abstractPath(pszSampleFile)));
 
200
                eSample.appendChild(doc.createTextNode(mapPath.abstractPath(
 
201
                        QDir::current().relativeFilePath(
 
202
                                QString::fromUtf8(pszSampleFile)))));
199
203
                eElement.appendChild(eSample);
200
204
                QDomElement eParams = doc.createElement("params");
201
205
                for (uint32_t i = 0; i < drumkv1::NUM_ELEMENT_PARAMS; ++i) {