Exemplo n.º 1
0
INT32 Editor::newBank( const string& path, const string& name, bool autosave )
{
    bool save = autosave ? options_.autosave_ : false;
    
    Bank* bank = synth_->getBank();
    bank->newBank( path, name, save );
    programMessage( BankChanged, NULL );
    return bank->programNum_;
}
Exemplo n.º 2
0
INT32 Editor::loadBank( const string& path )
{
    Bank* bank = synth_->getBank();
    bank->close( options_.autosave_ );

    string p = path;
    p.empty() ? p = options_.bankPath_ : options_.bankPath_ = p;

    p.empty() ? bank->newBank( options_.appPath_ + "New Bank.nexus", "New Bank", false ) : bank->load( p );
    programMessage( BankChanged, NULL );
    return bank->programNum_;
}