zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

Fl_Osc_Input.cpp (717B)


      1 /*
      2   ZynAddSubFX - a software synthesizer
      3 
      4   Fl_Osc_Input.cpp - OSC Powered Input Field
      5   Copyright (C) 2016 Mark McCurry
      6 
      7   This program is free software; you can redistribute it and/or
      8   modify it under the terms of the GNU General Public License
      9   as published by the Free Software Foundation; either version 2
     10   of the License, or (at your option) any later version.
     11 */
     12 #include "Fl_Osc_Input.H"
     13 
     14 Fl_Osc_Input::Fl_Osc_Input(int X, int Y, int W, int H, const char *label)
     15     :Fl_Input(X,Y,W,H, label), Fl_Osc_Widget(this)
     16 {
     17 }
     18 
     19 Fl_Osc_Input::~Fl_Osc_Input(void)
     20 {}
     21 
     22 void Fl_Osc_Input::init(const char *path)
     23 {
     24     ext = path;
     25     oscRegister(path);
     26 }
     27 
     28 void Fl_Osc_Input::OSC_value(const char *v)
     29 {
     30     value(v);
     31 }