Last change
on this file since 1187 was
797,
checked in by Maciej Komosinski, 6 years ago
|
A more complete implementation of fB, fH, fL
|
File size:
618 bytes
|
Line | |
---|
1 | // This file is a part of Framsticks SDK. http://www.framsticks.com/ |
---|
2 | // Copyright (C) 1999-2018 Maciej Komosinski and Szymon Ulatowski. |
---|
3 | // See LICENSE.txt for details. |
---|
4 | |
---|
5 | #include "fH_conv.h" |
---|
6 | |
---|
7 | SString GenoConv_fH0::convert(SString &i, MultiMap *map, bool using_checkpoints) |
---|
8 | { |
---|
9 | fH_Builder builder(0, NULL != map); |
---|
10 | builder.parseGenotype(i); |
---|
11 | if (!builder.sticksExist()) return ""; |
---|
12 | Model * m = builder.buildModel(using_checkpoints); |
---|
13 | if (!m) return SString(); // oops |
---|
14 | if (NULL != map) |
---|
15 | // generate to-f0 conversion map |
---|
16 | m->getCurrentToF0Map(*map); |
---|
17 | SString gen = m->getF0Geno().getGenes(); |
---|
18 | delete m; |
---|
19 | return gen; |
---|
20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.