- 授权协议: GPL
- 开发语言: C/C++
- 操作系统: Linux
- 软件首页: http://drumstick.sourceforge.net/
- 软件文档: http://drumstick.sourceforge.net/docs/
软件介绍
Drumstick 是一个ALSA的音序器 (MIDI 接口)的C++封装库
示例代码:
#include <QApplication>
#include <drumstick.h>
int main(int argc, char **argv) {
QApplication app(argc, argv, false);
// create a client object on the heap
drumstick::MidiClient *client = new drumstick::MidiClient;
client->open();
client->setClientName( "MyClient" );
// create the port
drumstick::MidiPort *port = client->createPort();
port->setPortName( "MyPort" );
port->setCapability( SND_SEQ_PORT_CAP_READ | SND_SEQ_PORT_CAP_SUBS_READ );
port->setPortType( SND_SEQ_PORT_TYPE_MIDI_GENERIC );
// subscribe the port to some other client:port
port->subscribeTo( "20:0" ); // or "name:port", like in "KMidimon:0"
// create an event object on the stack, to send a note on message
drumstick::NoteOnEvent ev( 0, 66, 100 ); // (channel, note number, velocity)
ev.setSource( port->getPortId() );
ev.setSubscribers(); // deliver to all the connected ports
ev.setDirect(); // not scheduled, deliver immediately
client->output( &ev ); // or outputDirect() if you prefer not buffered
client->drainOutput(); // flush the buffer
// close and clean
client->close();
delete client;
return 0;
}
大数据技术原理与应用
林子雨 / 人民邮电出版社 / 2015-8-1 / 45.00
大数据作为继云计算、物联网之后IT行业又一颠覆性的技术,备受关注。大数据处不在,包括金融、汽车、零售、餐饮、电信、能源、政务、医疗、体育、娱乐等在内的社会各行各业,都融入了大数据的印迹,大数据对人类的社会生产和生活必将产生重大而深远的影响。 大数据时代的到来,迫切需要高校及时建立大数据技术课程体系,为社会培养和输送一大批具备大数据专业素养的高级人才,满足社会对大数据人才日益旺盛的需求。本书定......一起来看看 《大数据技术原理与应用》 这本书的介绍吧!
