Skip to content

Commit

Permalink
Merge pull request #14 from togrupe/release/2.0.0
Browse files Browse the repository at this point in the history
Release/2.0.0
  • Loading branch information
togrupe authored Jan 5, 2023
2 parents 31cbbb0 + aa43a77 commit 69a02c0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions dawsession/SessionCreator.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ def convert_sheet_color_to_reaper_color(color):
return colour


def generate_rec_item(channel):
ret = "1 " + str(channel) + " 1 0 0 0 0 0"

return ret


def generate_hwout_item(channel):
channel_temp = 1024 + channel
ret = "" + str(channel_temp) + " 0 1 0 0 0 0 -1:U -1"
return ret


def create_reaper_session(sheet):
project = Project()

Expand All @@ -45,8 +57,9 @@ def create_reaper_session(sheet):
track.props = [
["NAME", track_name_combined],
["PEAKCOL", convert_sheet_color_to_reaper_color(item.get_color())],
["REC", "1 0 1 0 0 0 0 0"],
["TRACKHEIGHT", "40 0 0 0 0 0"]
["REC", generate_rec_item(item.get_channel_dlive())],
["TRACKHEIGHT", "40 0 0 0 0 0"],
["HWOUT", generate_hwout_item(item.get_channel_dlive())]
]
project.add(track)

Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ def state(self):
config_frame.pack(side=TOP)

columns = Checkbar(root, ['Name', 'Color', 'Mute', '48V Phantom', 'Pad'])
reaper = Checkbar(root, ['Create Reaper Session'])
reaper = Checkbar(root, ['Create Reaper Session (In & Out 1:1 Patch)'])

ip_field = Frame(ip_frame)
ip_byte0 = Entry(ip_field, width=3)
Expand Down

0 comments on commit 69a02c0

Please sign in to comment.