当前位置: 首页>>代码示例>>C++>>正文


C++ Note::channel方法代码示例

本文整理汇总了C++中Note::channel方法的典型用法代码示例。如果您正苦于以下问题:C++ Note::channel方法的具体用法?C++ Note::channel怎么用?C++ Note::channel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Note的用法示例。


在下文中一共展示了Note::channel方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: time

	inline bool operator==(const Note& other) {
		return time() == other.time() && 
	         note() == other.note() && 
	         length() == other.length() &&
	         velocity() == other.velocity() &&
	         channel()  == other.channel();
	}
开发者ID:agomusic,项目名称:ardour3,代码行数:7,代码来源:Note.hpp

示例2: assert

Note<Time>::Note(const Note<Time>& copy)
	: _on_event(copy._on_event, true)
	, _off_event(copy._off_event, true)
{
	set_id (copy.id());

	assert(_on_event.buffer());
	assert(_off_event.buffer());
	/*
	  assert(copy._on_event.size == 3);
	  _on_event.buffer = _on_event_buffer;
	  memcpy(_on_event_buffer, copy._on_event_buffer, 3);

	  assert(copy._off_event.size == 3);
	  _off_event.buffer = _off_event_buffer;
	  memcpy(_off_event_buffer, copy._off_event_buffer, 3);
	*/

	assert(time() == copy.time());
	assert(end_time() == copy.end_time());
	assert(length() == copy.length());
	assert(note() == copy.note());
	assert(velocity() == copy.velocity());
	assert(_on_event.channel() == _off_event.channel());
	assert(channel() == copy.channel());
}
开发者ID:63n,项目名称:ardour,代码行数:26,代码来源:Note.cpp

示例3: musical_time_equal

	inline bool operator==(const Note<Time>& other) {
		return musical_time_equal (time(), other.time()) &&
			note() == other.note() &&
			musical_time_equal (length(), other.length()) &&
			velocity() == other.velocity() &&
			off_velocity() == other.off_velocity() &&
			channel()  == other.channel();
	}
开发者ID:taybin,项目名称:Gusto,代码行数:8,代码来源:Note.hpp

示例4:

const Note<Time>&
Note<Time>::operator=(const Note<Time>& other)
{
	_on_event = other._on_event;
	_off_event = other._off_event;

	assert(time() == other.time());
	assert(end_time() == other.end_time());
	assert(length() == other.length());
	assert(note() == other.note());
	assert(velocity() == other.velocity());
	assert(_on_event.channel() == _off_event.channel());
	assert(channel() == other.channel());

	return *this;
}
开发者ID:63n,项目名称:ardour,代码行数:16,代码来源:Note.cpp


注:本文中的Note::channel方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。