Skip to content

Commit

Permalink
move meta type to types folder; rename class to Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Dec 3, 2024
1 parent 925403e commit 084e623
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion hvcc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
from hvcc.generators.c2pdext import c2pdext
from hvcc.generators.c2wwise import c2wwise
from hvcc.generators.c2unity import c2unity
from hvcc.generators.types.meta import Meta
from hvcc.types.compiler import CompilerResp, CompilerNotif, CompilerMsg
from hvcc.types.meta import Meta


class Colours:
Expand Down
6 changes: 3 additions & 3 deletions hvcc/generators/c2daisy/c2daisy.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
from typing import Any, Dict, Optional

from ..copyright import copyright_manager
from ..types.meta import Meta, Daisy
from . import parameters

from hvcc.interpreters.pd2hv.NotificationEnum import NotificationEnum
from hvcc.types.compiler import Compiler, CompilerResp, CompilerNotif, CompilerMsg
from hvcc.types.compiler import Generator, CompilerResp, CompilerNotif, CompilerMsg
from hvcc.types.meta import Meta, Daisy


hv_midi_messages = {
Expand All @@ -26,7 +26,7 @@
}


class c2daisy(Compiler):
class c2daisy(Generator):
""" Generates a Daisy wrapper for a given patch.
"""

Expand Down
6 changes: 3 additions & 3 deletions hvcc/generators/c2dpf/c2dpf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
from ..filters import filter_uniqueid

from hvcc.interpreters.pd2hv.NotificationEnum import NotificationEnum
from hvcc.generators.types.meta import Meta, DPF
from hvcc.types.compiler import Compiler, CompilerResp, CompilerMsg, CompilerNotif
from hvcc.types.compiler import Generator, CompilerResp, CompilerMsg, CompilerNotif
from hvcc.types.meta import Meta, DPF


class c2dpf(Compiler):
class c2dpf(Generator):
""" Generates a DPF wrapper for a given patch.
"""

Expand Down
6 changes: 3 additions & 3 deletions hvcc/generators/c2js/c2js.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
from ..copyright import copyright_manager

from hvcc.interpreters.pd2hv.NotificationEnum import NotificationEnum
from hvcc.generators.types.meta import Meta
from hvcc.types.compiler import Compiler, CompilerResp, CompilerNotif, CompilerMsg
from hvcc.types.compiler import Generator, CompilerResp, CompilerNotif, CompilerMsg
from hvcc.types.meta import Meta


class c2js(Compiler):
class c2js(Generator):
"""Compiles a directory of C source files into javascript. Requires the
emscripten library to be installed - https://github.com/kripken/emscripten
"""
Expand Down
6 changes: 3 additions & 3 deletions hvcc/generators/c2owl/c2owl.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
from ..copyright import copyright_manager

from hvcc.interpreters.pd2hv.NotificationEnum import NotificationEnum
from hvcc.generators.types.meta import Meta
from hvcc.types.compiler import Compiler, CompilerResp, CompilerNotif, CompilerMsg
from hvcc.types.compiler import Generator, CompilerResp, CompilerNotif, CompilerMsg
from hvcc.types.meta import Meta


heavy_hash = HeavyLangObject.HeavyLangObject.get_hash
OWL_BUTTONS = ['Push', 'B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'B7', 'B8']


class c2owl(Compiler):
class c2owl(Generator):
""" Generates a OWL wrapper for a given patch.
"""

Expand Down
6 changes: 3 additions & 3 deletions hvcc/generators/c2pdext/c2pdext.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
from ..filters import filter_max

from hvcc.interpreters.pd2hv.NotificationEnum import NotificationEnum
from hvcc.generators.types.meta import Meta
from hvcc.types.compiler import Compiler, CompilerResp, CompilerNotif, CompilerMsg
from hvcc.types.compiler import Generator, CompilerResp, CompilerNotif, CompilerMsg
from hvcc.types.meta import Meta


class c2pdext(Compiler):
class c2pdext(Generator):
"""Generates a Pure Data external wrapper for a given patch.
"""

Expand Down
6 changes: 3 additions & 3 deletions hvcc/generators/c2unity/c2unity.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
from ..filters import filter_string_cap, filter_templates, filter_xcode_build, filter_xcode_fileref

from hvcc.interpreters.pd2hv.NotificationEnum import NotificationEnum
from hvcc.generators.types.meta import Meta
from hvcc.types.compiler import Compiler, CompilerResp, CompilerNotif, CompilerMsg
from hvcc.types.compiler import Generator, CompilerResp, CompilerNotif, CompilerMsg
from hvcc.types.meta import Meta


class c2unity(Compiler):
class c2unity(Generator):
"""Generates a Audio Native Plugin wrapper for Unity 5.
"""

Expand Down
6 changes: 3 additions & 3 deletions hvcc/generators/c2wwise/c2wwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
from ..filters import filter_plugin_id

from hvcc.interpreters.pd2hv.NotificationEnum import NotificationEnum
from hvcc.generators.types.meta import Meta
from hvcc.types.compiler import Compiler, CompilerResp, CompilerNotif, CompilerMsg
from hvcc.types.compiler import Generator, CompilerResp, CompilerNotif, CompilerMsg
from hvcc.types.meta import Meta


class c2wwise(Compiler):
class c2wwise(Generator):
"""Generates a plugin wrapper for Audiokinetic's Wwise game audio middleware
platform.
"""
Expand Down
Empty file removed hvcc/generators/types/__init__.py
Empty file.
4 changes: 2 additions & 2 deletions hvcc/types/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from pydantic import BaseModel

from hvcc.interpreters.pd2hv.NotificationEnum import NotificationEnum
from hvcc.generators.types.meta import Meta
from hvcc.types.meta import Meta


class CompilerMsg(BaseModel):
Expand Down Expand Up @@ -33,7 +33,7 @@ class CompilerResp(BaseModel):
ir: Dict[str, Any] = {} # TODO: improve Any type in Graph objects


class Compiler(ABC):
class Generator(ABC):

@abstractmethod
def compile(
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hvcc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

from hvcc.core.hv2ir.HeavyLangObject import HeavyLangObject
from hvcc.interpreters.pd2hv.PdParser import PdParser
from hvcc.generators.types.meta import Meta, DPF, Daisy
from hvcc.types.meta import Meta, DPF, Daisy


gens = {
Expand Down

0 comments on commit 084e623

Please sign in to comment.