Skip to content

Commit

Permalink
flag patch
Browse files Browse the repository at this point in the history
i forgot about flags sowwy
  • Loading branch information
UtaUtaUtau committed Oct 31, 2022
1 parent fb939de commit ec6047b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ Tempo | `tempo` | Tempo at note in BPM. | ✓ | ✓ | - | `float`
Velocity | `velocity` | Note consonant velocity in percent. | ✓ | ✓ | - | `float`
Label | `label` | Label at note. | ✓ | ✓ | - | `str`
$direct | `direct` | Boolean that enables direct rendering. | ✓ | ✓ | - | `bool`
Flags | `flags` | Note flags. | ✓ | ✓ | - | `str`
PBS, PBW, PBY, PBM | `mode2pitch` | Mode 2 pitchbend data. | ✓ | ✓ | - | `Mode2Pitch`
VBR | `vibrato` | Mode 2 vibrato data. | ✓ | ✓ | - | `Vibrato`
PitchBend, PBStart | `mode1pitch` | Mode 1 pitchbend data. | ✓ | ✓ | - | `Mode1Pitch`
Expand Down
11 changes: 11 additions & 0 deletions pyutau/pyutau.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,17 @@ def get_direct(self):

direct = property(get_direct, set_direct)

def set_flags(self, flags):
self.note_data['Flags'] = str(flags)

def get_flags(self):
if 'Flags' in self.note_data:
return self.note_data['Flags']
else:
return None

flags = property(get_flags, set_flags)

def set_mode2pitch(self, mode2pitch):
if isinstance(mode2pitch, Mode2Pitch):
self.set_multiple_data(**mode2pitch.get())
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
setup(
name='pyutau',
packages=['pyutau'],
version='1.0.0',
version='1.1.0',
license='MIT',
description='A python library/module for parsing UTAU plugin data',
long_description=long_description,
Expand All @@ -24,5 +24,5 @@
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9'],
download_url='https://github.com/UtaUtaUtau/pyUtau/archive/refs/tags/v1.0.0.tar.gz'
download_url='https://github.com/UtaUtaUtau/pyUtau/archive/refs/tags/v1.1.0.tar.gz'
)

0 comments on commit ec6047b

Please sign in to comment.