Skip to content

Instantly share code, notes, and snippets.

View atsushieno's full-sized avatar

Atsushi Eno atsushieno

View GitHub Profile
// constants
int all_keys = 128 - 24; // strip octave 0 and octave 10
int channels = 16;
int key_width = 7;
int key_height = 20;
int ch_height = 36;
int text_height = 8;
int play_info_section_width = 200;
color color_background = #000008;
==== Attached at 2009-05-22 22:08:09 +0900 ====
Fri May 22 20:55:36 unknown kernel[0] <Debug>: AppleMRVL868x::setPOWER() [kernel_task]: 0
Fri May 22 20:55:36 unknown kernel[0] <Debug>: AppleMRVL868x::setPOWER(): Flushing beacons!!
Fri May 22 20:55:36 unknown kernel[0] <Debug>: AppleSynopsysOTG2::handleUSBCableDisconnect
Fri May 22 20:55:36 unknown kernel[0] <Debug>: AppleMRVL868x::setPowerStateGated(): 1 -> 0, 0xc0c14000
Fri May 22 20:55:36 unknown kernel[0] <Debug>: [289247.195284500]: virtual bool AppleS5L8900XSDIO::sendCommand(IOSDIOCommand*): Timeout waiting for CMDRDY indication
Fri May 22 20:55:36 unknown kernel[0] <Debug>: virtual bool IOSDIOController::pushDeviceInterrupt(UInt8): Error, failed to read CCCR Interrupt Pending register: device is not ready
Fri May 22 21:04:00 unknown kernel[0] <Debug>: AppleS5L8900XI2SController::setPowerState(0xc0b1b900, 1 -> 0) timed out after 15135 ms
Fri May 22 20:55:51 unknown kernel[0] <Debug>: System Sleep
Fri May 22 21:04:00 unknown kernel[0] <Debug>: pmu wake ev
==== Attached at 2009-05-22 22:08:09 +0900 ====
Fri May 22 20:55:36 unknown kernel[0] <Debug>: AppleMRVL868x::setPOWER() [kernel_task]: 0
Fri May 22 20:55:36 unknown kernel[0] <Debug>: AppleMRVL868x::setPOWER(): Flushing beacons!!
Fri May 22 20:55:36 unknown kernel[0] <Debug>: AppleSynopsysOTG2::handleUSBCableDisconnect
Fri May 22 20:55:36 unknown kernel[0] <Debug>: AppleMRVL868x::setPowerStateGated(): 1 -> 0, 0xc0c14000
Fri May 22 20:55:36 unknown kernel[0] <Debug>: [289247.195284500]: virtual bool AppleS5L8900XSDIO::sendCommand(IOSDIOCommand*): Timeout waiting for CMDRDY indication
Fri May 22 20:55:36 unknown kernel[0] <Debug>: virtual bool IOSDIOController::pushDeviceInterrupt(UInt8): Error, failed to read CCCR Interrupt Pending register: device is not ready
Fri May 22 21:04:00 unknown kernel[0] <Debug>: AppleS5L8900XI2SController::setPowerState(0xc0b1b900, 1 -> 0) timed out after 15135 ms
Fri May 22 20:55:51 unknown kernel[0] <Debug>: System Sleep
Fri May 22 21:04:00 unknown kernel[0] <Debug>: pmu wake ev
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
#if Moonlight
using MidiOutput = System.IntPtr;
using System.Windows;
#else
using PortMidiSharp;
Index: src/mml_macro_expander.cs
===================================================================
--- src/mml_macro_expander.cs (revision 85)
+++ src/mml_macro_expander.cs (working copy)
@@ -82,12 +82,17 @@
void ExpandMacro (MmlSemanticMacro macro)
{
+//Console.Write ("Expanding macro {0}, from {1} operation(s)", macro.Name, macro.Data.Count);
if (macro.Expanded != null)
// 続きは気が向いたら。
using System;
using System.Collections.Generic;
using FadeCurveShapeID = System.String; // 4-byte character code
using DspParameterID = System.String; // 4-byte character code
namespace Commons.Music.Ixmf
{
public class IxmfEngine
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using PortMidiSharp;
namespace Commons.Music.Midi
{
public class Driver
#include <portmidi.h>
#include <stdio.h>
#include <unistd.h>
PmDeviceInfo *devinfo;
PortMidiStream *outs;
PortMidiStream *ins;
void main (int argc, char **argv)
{
// Parses SC-8850 tone list at http://www.roland.co.jp/lib/download/Tone_list.html#SC8850
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace Monotone.Tools
{
public class ToneName
diff --git a/samples/WebMidiPlayer.cs b/samples/WebMidiPlayer.cs
index 2eb8b7c..1ad8293 100644
--- a/samples/WebMidiPlayer.cs
+++ b/samples/WebMidiPlayer.cs
@@ -1,5 +1,6 @@
using System;
using System.ServiceModel;
+using System.Threading;
namespace Commons.Music.Midi.Player