summaryrefslogtreecommitdiff
path: root/noncore/multimedia/tonleiter/tonleiterdatahelper.cpp
authorwaspe <waspe>2003-12-02 19:03:50 (UTC)
committer waspe <waspe>2003-12-02 19:03:50 (UTC)
commit64304e555fc3e06aa69fa2f4a514ee55b7aa98bc (patch) (side-by-side diff)
tree3ce47189f43f18cccd42d326cf52977b339c744d /noncore/multimedia/tonleiter/tonleiterdatahelper.cpp
parent7b74f202db22d458c43b2063ae128bf79b0e9777 (diff)
downloadopie-64304e555fc3e06aa69fa2f4a514ee55b7aa98bc.zip
opie-64304e555fc3e06aa69fa2f4a514ee55b7aa98bc.tar.gz
opie-64304e555fc3e06aa69fa2f4a514ee55b7aa98bc.tar.bz2
*** empty log message ***
Diffstat (limited to 'noncore/multimedia/tonleiter/tonleiterdatahelper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/tonleiter/tonleiterdatahelper.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/multimedia/tonleiter/tonleiterdatahelper.cpp b/noncore/multimedia/tonleiter/tonleiterdatahelper.cpp
index 5714cea..156dba5 100644
--- a/noncore/multimedia/tonleiter/tonleiterdatahelper.cpp
+++ b/noncore/multimedia/tonleiter/tonleiterdatahelper.cpp
@@ -1,5 +1,7 @@
#include "tonleiterdatahelper.h"
+#include <math.h>
+
using namespace Data;
int Note::getOctaveOfNote(int note)
@@ -76,7 +78,7 @@ int Instrument::noOfOctaves()
{
int lowest=strings[0];
int highest=strings[strings.count()-1]+frets;
- return (int)((highest-lowest)/12.0);
+ return (int) ceil((highest-lowest)/12.0);
}
//****************************************************************************
//****************************************************************************