Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: ppaez/alsaseq
base: c8f858653c
...
head fork: ppaez/alsaseq
compare: 9941a0cacc
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Feb 04, 2014
@ppaez Added aseqplay.py
- This is the version from 2007-12-02
7c096b0
@ppaez Allow to be imported
- Added main()
9941a0c
Showing with 37 additions and 0 deletions.
  1. +37 −0 aseqplay.py
View
37 aseqplay.py
@@ -0,0 +1,37 @@
+#! /usr/bin/python
+# -*- coding: UTF-8 -*-
+
+import alsaseq, alsamidi, sys
+
+def main():
+ dest_cliente = int( sys.argv[1] )
+ ruta = sys.argv[2]
+ if len(sys.argv) > 3:
+ display = sys.argv[3]
+ else:
+ display = ''
+
+ seq = alsamidi.Seq()
+ seq.read( ruta )
+ eventos = alsamidi.merge( seq.tracks )
+ seq.info()
+
+ print len( eventos ), 'eventos'
+ alsaseq.client( 'Reproductor', 0, 1, 1 )
+ alsaseq.connectto( 0, dest_cliente, 0 )
+
+ for channel in range( 16 ):
+ alsaseq.output( alsamidi.pgmchangeevent( channel, 0 ) )
+
+ alsaseq.start()
+
+ #eventos = alsamidi.modifyevents( eventos, source = ( 20, 0 ) )
+ for evento in eventos:
+ if display: print evento
+ alsaseq.output( evento )
+
+ alsaseq.syncoutput()
+ # time.sleep( delay )
+
+if __name__ == '__main__':
+ main()

No commit comments for this range

Something went wrong with that request. Please try again.