Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Read and write Reaper RPP files with Python.

License

NotificationsYou must be signed in to change notification settings

Perlence/rpp

Repository files navigation

RPP is a format used to describeREAPER projects. This package is designed to be an RPPparser/emitter and usesPLY as a parser framework.

Examples

Import the package:

>>>importrpp

Decode RPP:

>>>r=rpp.loads("""\<REAPER_PROJECT 0.1 "4.32" 1372525904  RIPPLE 0  GROUPOVERRIDE 0 0 0  AUTOXFADE 1>""")>>>rElement(tag='REAPER_PROJECT',attrib=['0.1','4.32','1372525904'],children=[    ['RIPPLE','0'],    ['GROUPOVERRIDE','0','0','0'],    ['AUTOXFADE','1'],])

Transform elements into RPP:

>>>fromrppimportElement>>>rpp.dumps(...Element(tag='REAPER_PROJECT',attrib=['0.1','4.32','1372525904'],children=[...         ['RIPPLE','0'],...         ['GROUPOVERRIDE','0','0','0'],...         ['AUTOXFADE','1'],...     ]))'<REAPER_PROJECT 0.1 4.32 1372525904\n  RIPPLE 0\n  GROUPOVERRIDE 0 0 0\n  AUTOXFADE 1\n>\n'

Element mimics the interface ofxml.etree.ElementTree.Element. You can perform querying operations withfindall,find,iterfind. Note that attribute and text predicates are not supported.

>>>groupoverride=r.find('.//GROUPOVERRIDE')>>>groupoverride['GROUPOVERRIDE','0','0','0']>>>groupoverride[1:]= ['9','9','9']>>>rElement(tag='REAPER_PROJECT',attrib=['0.1','4.32','1372525904'],children=[    ['RIPPLE','0'],    ['GROUPOVERRIDE','9','9','9'],    ['AUTOXFADE','1'],])

Dependencies

About

Read and write Reaper RPP files with Python.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp