Skip to content

Commit

Permalink
Ver 1.2: Fix pypi mainfest deps, windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
duangsuse committed Apr 26, 2020
1 parent a88ed76 commit c64f09d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ The name of the project is *Hachiko*, inspired by the golden yellow Akita dog -

Since version 1.1, setting up the installation using `setuptools` is required.

> For Windows installation guide, please read [this wiki](https://github.com/duangsuse-valid-projects/Hachiko/wiki/Windows-Installation)
```bash
python3 setup.py install # can be --user or sudo
```
Expand Down
4 changes: 2 additions & 2 deletions hachiko/FluidSynth.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
from .funutils import findLibrary, createLibrary
# DO NOT EDIT
#This file was generated by ./funutils.py fluidsynth.h FluidSynth libfluidsynth-1 libfluidsynth-2 libfluidsynth fluidsynth
#This file was generated by ./funutils.py fluidsynth.h FluidSynth libfluidsynth-2 libfluidsynth-1 libfluidsynth fluidsynth

lib_names = ['libfluidsynth-1', 'libfluidsynth-2', 'libfluidsynth', 'fluidsynth']
lib_names = ['libfluidsynth-2', 'libfluidsynth-1', 'libfluidsynth', 'fluidsynth']
lib_path = findLibrary('FluidSynth', lib_names)
cfunc = createLibrary(lib_path)

Expand Down
7 changes: 4 additions & 3 deletions hachiko/synthesize.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@

from ctypes import sizeof, create_string_buffer, c_int16
from .funutils import *

import numpy
from sf2utils.sf2parse import Sf2File

try: import numpy
except ImportError: pass

drivers = ["alsa", "oss", "jack", "portaudio", "sndmgr", "coreaudio", "Direct Sound", "pulseaudio"]

from .FluidSynth import *

def fluid_synth_write_s16_stereo(synth, n: int, n_channel = 2) -> numpy.ndarray:
def fluid_synth_write_s16_stereo(synth, n: int, n_channel = 2): # -> numpy.ndarray
"""Return generated samples in stereo 16-bit format"""
buf = create_string_buffer(n*n_channel*sizeof(c_int16))
fluid_synth_write_s16(synth, n, buf, 0, n_channel, buf, 1, n_channel)
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pygame>=1.8
sf2utils>=0.9
srt>=3.0
mido>=1.2
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ def parse_requirements(requirements):
return list(filter(lambda s: s.strip() != "", items))

setup(
name="hachiko-bapu", version="0.1.1",
name="hachiko-bapu", version="0.1.2",
python_requires=">=3.5",
author="duangsuse", author_email="fedora-opensuse@outlook.com",
url="https://github.com/duangsuse-valid-projects/Hachiko",
description="Simple pygame GUI tool for creating pitch timeline",
Expand All @@ -29,17 +30,16 @@ def parse_requirements(requirements):
"Topic :: Utilities"
],

python_requires=">=3.6",
packages=find_packages(),
package_data={ "": ["*.sf2"] },
install_requires=parse_requirements("requirements.txt"),
extras_require={
"synthesize buffer": ["numpy>=1.0"],
"funutils codegen": ["pyparsing>=2.4"]
},
package_data={ "": ["*.sf2"] },
entry_points={
"gui_scripts": ["hachiko = hachiko.hachi:main"],
"console_scripts": [
"hachiko = hachiko.hachi:main",
"srt2mid = hachiko.cli_tools.srt2mid:main",
"lrc_merge = hachiko.cli_tools.lrc_merge:main"
]
Expand Down

0 comments on commit c64f09d

Please sign in to comment.