Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Q&A, Tips, Tricks and Howto

Reply
 
Thread Tools Display Modes
Old 12-28-2022, 05:56 AM   #41
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

@karbomusic
As you can see, my account was created Before they asked my phone number

Phone number is asked After account creation.
It is not for loggin, or at least not only for that. I also not buy random reports either. That is why I asked for clarifications, and they prefered delete my account than explain. This looks a bit suspicious.
I mean, having a company selling a phone number, this is not too hard to believe either.


Anyway, I would have posted more infod if I had more but they didnt give them to me so it is all we got. But please contact the support if you have an account and we will see the answer.



EDIT: according go their support page, numbers is just use for authentification at sugn up. https://help.openai.com/en/articles/...ber-to-sign-up
But this is partially true. It is not asked at signup, it is asked at first login. Your account already exist when they ask for phone number.
Anyway, if they dont sell number I really wonder why they didn't just tell me that. I give them the benefit of the doubt.

Last edited by X-Raym; 12-28-2022 at 06:05 AM.
X-Raym is offline   Reply With Quote
Old 12-28-2022, 06:45 AM   #42
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

Quote:
Originally Posted by X-Raym View Post
EDIT: according go their support page, numbers is just use for authentification at sugn up. https://help.openai.com/en/articles/...ber-to-sign-up
But this is partially true. It is not asked at signup, it is asked at first login. Your account already exist when they ask for phone number.
Anyway, if they dont sell number I really wonder why they didn't just tell me that. I give them the benefit of the doubt.
I thought asked me during signup so not sure what happened there. 2FA as verification makes the most sense though - That's why so many institutions like banks and doctors etc. use it.

Take care.
__________________
Music is what feelings sound like.
karbomusic is offline   Reply With Quote
Old 12-28-2022, 07:03 AM   #43
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

@karbomusic
But is it 2fa ? do you recieve a password sms when logging?
or is it just password restoration?
Could have been OTP rather than 2FA. Less sensitive data.
X-Raym is offline   Reply With Quote
Old 12-28-2022, 09:54 AM   #44
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

Quote:
Originally Posted by X-Raym View Post
@karbomusic
But is it 2fa ? do you recieve a password sms when logging?
or is it just password restoration?
Could have been OTP rather than 2FA. Less sensitive data.
Not truly 2FA, the main point was it needs the secondary piece of proof that 2FA normally uses (something you have - aka the phone). I wasn't getting too nitpicky between it being used during signup or auth, just the part about trying to confirm a human was signing up vs an automated system or malicious user vs just wanting your data for other purposes.
__________________
Music is what feelings sound like.
karbomusic is offline   Reply With Quote
Old 12-30-2022, 05:58 AM   #45
Lynx_TWO
Human being with feelings
 
Lynx_TWO's Avatar
 
Join Date: Dec 2019
Location: St Petersburg FL
Posts: 999
Default

Quote:
Originally Posted by vitalker View Post
Why not using virtual numbers instead?
Reminds me of that one Bill Burr skit

Customer Service: “well Sir if there’s no phone number in here I just can’t…”.

Bill: “Well I don’t know what to tell you sweetheart! Put your finger on the one and drrrratttt 1-2-3–4-5-6-7-8-9-9! Area code 123, very exclusive.”
__________________
My mixes from the Cambridge multitracks library
SoundCloud link & Youtube (ThemTube?) link
My preferred adjectives are “Handsome” and “Brilliant”
Lynx_TWO is offline   Reply With Quote
Old 02-25-2023, 08:06 AM   #46
K8ch
Human being with feelings
 
K8ch's Avatar
 
Join Date: Nov 2010
Location: New England
Posts: 690
Default

I tried to have ChatGPT write a script that selects all MIDI notes that are on the 1st beat of each measure, on the selected MIDI track.

After many attempts/corrections, it told me that I didn't have SWS installed.

I -do- have SWS installed so, maybe this must've been too difficult a task?
__________________
aka K8ch
(www.KeithHaydon.com)
K8ch is offline   Reply With Quote
Old 02-25-2023, 11:58 AM   #47
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,679
Default

^^^^
How does ChatGPT know what is on your system? And what else does it look for?
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 02-25-2023, 12:04 PM   #48
MonkeyBars
Human being with feelings
 
MonkeyBars's Avatar
 
Join Date: Feb 2016
Location: Hollyweird
Posts: 2,637
Default

Quote:
Originally Posted by DarkStar View Post
How does ChatGPT know what is on your system? And what else does it look for?
Scripting works inside software, in this case Reaper, so unless you're actually manipulating things outside that software, it doesn't need to know anything about that. (MIDI notes aren't outside the software.)
MonkeyBars is offline   Reply With Quote
Old 03-15-2023, 08:32 AM   #49
PitchSlap
Human being with feelings
 
PitchSlap's Avatar
 
Join Date: Jan 2008
Location: Vancouver, BC
Posts: 3,795
Default

Just a heads up ChatGPT v4 is out.
Apparently it's programming abilities are much improved.

I think a big advantage is it can output 25,000 words vs. 3,000 with GPT 3.5 so should be better for more complex scripts.

I've never tried learning to script, but now seems like a good time to start!
__________________
FRs: v5 Media Explorer Requests, Global Quantization, Session View
Win10 Pro 64-bit, Reaper 6(x64), AMD 3950x, Aorus X570 Master, 64GB DDR4 3600, PowerColor Red Devil 5700XT, EVO 970 2TB, 10TB HD, Define R6
PitchSlap is offline   Reply With Quote
Old 11-07-2023, 03:33 PM   #50
MaXyM
Human being with feelings
 
Join Date: Aug 2018
Posts: 454
Default

Hello.
I needed a script counting plugins for KVR OSC.
I asked ChatGPT for that. Yeah, knowing nothing about scripting in Reaper, it accelerates the beginnings.
But it made two mistakes: in distinguishing plugins enabled from disabled and instruments from effects. I left both lines commented out.

I fixed the first issue and extended adding offline plugins.
For instruments vs effects, I found no good way. My prototype is based on searching substring in the plugin's name but it's unreliable (because prefix disappear once you rename the plugin).
Is there a better method?

Code:
-- Reaper Plugin: List Used Instruments and Effects with Quantity
-- Version: 1.0
-- Author: [Your Name]

-- This script generates a list of all used instruments and effects in the active project and their quantities.

-- Get the active project
local project = reaper.EnumProjects(-1, "")
-- Initialize tables to store instrument and effect names and their quantities
local instrumentList = {}
local effectList = {}
local offlineList = {}


-- Iterate through all tracks in the project
for i = 0, reaper.CountTracks(project) - 1 do
    local track = reaper.GetTrack(project, i)
    
    -- Iterate through all FX on the track
    for j = 0, reaper.TrackFX_GetCount(track) - 1 do
    
        local _, fxName = reaper.TrackFX_GetFXName(track, j, "")
      --  local _, _, _, _, enabled = reaper.TrackFX_GetParam(track, j, 0, 0, 0)
        
        -- Get the enabled state of the plugin
        local isEnabled = reaper.TrackFX_GetEnabled(track, j)
        
        -- Get the offline state of the plugin
        local isOffline = reaper.TrackFX_GetOffline(track, j)
        
        -- If the plugin is enabled, check if it's an instrument or effect
        if isEnabled and not isOffline then
            -- local isInstrument = reaper.TrackFX_GetInstrument(track, j)
            local isInstrument = string.find(fxName, "VSTi") or string.find(fxName, "VST3i") or false
           
            if isInstrument then
                instrumentList[fxName] = (instrumentList[fxName] or 0) + 1
            else
                effectList[fxName] = (effectList[fxName] or 0) + 1
            end
        else
           offlineList[fxName] = (offlineList[fxName] or 0) + 1 
        end
    end
end

-- Display the lists
local msg = "List of Used Instruments:\n"
for instrument, quantity in pairs(instrumentList) do
    msg = msg .. instrument .. " - Quantity: " .. quantity .. "\n"
end

msg = msg .. "\nList of Used Effects:\n"
for effect, quantity in pairs(effectList) do
    msg = msg .. effect .. " - Quantity: " .. quantity .. "\n"
end


msg = msg .. "\nList of offline/inactive plugins:\n"
for effect, quantity in pairs(offlineList) do
    msg = msg .. effect .. " - Quantity: " .. quantity .. "\n"
end

reaper.ShowConsoleMsg(msg)

Last edited by MaXyM; 11-07-2023 at 03:55 PM.
MaXyM is offline   Reply With Quote
Old 11-11-2023, 03:19 AM   #51
MaXyM
Human being with feelings
 
Join Date: Aug 2018
Posts: 454
Default

Not that I ever were believing it might work... my first attempts checking its knowledge about Postgresql failed hard.

Now trying with reaper:

Code:
-- Get the current working track
local track = reaper.GetSelectedTrack(0, 0)

-- Specify the index of the FX you want to check
local fxIndex = 0  -- Change this to the index of your desired FX

-- Get the number of audio inputs and outputs
local audioInputs, audioOutputs = reaper.TrackFX_GetIOSize(track, fxIndex)

-- Check if the plugin has MIDI inputs
local hasMIDIInputs = audioInputs == 0 and audioOutputs == 0

-- Display the result
if hasMIDIInputs then
    reaper.ShowConsoleMsg("The plugin has MIDI inputs.\n")
else
    reaper.ShowConsoleMsg("The plugin does not have MIDI inputs.\n")
end
TrackFX_GetIOSize - returns 3 values, not 2. It missed 1st value.

And the line deducting either instrument has MIDI output or not just killed me.
MaXyM is offline   Reply With Quote
Old 11-11-2023, 08:56 AM   #52
Perken
Human being with feelings
 
Perken's Avatar
 
Join Date: May 2019
Location: Los Angeles / God forbid…
Posts: 193
Default

Quote:
Originally Posted by withinmyself View Post
I still think using ChatGPT is a great launching point for boilerplate basics. And it definitely seems really good at commenting and writing up documentation.
My 2 cents of opiniology:
I agree it can save some time when writing, but don't expect it to be a substitute for learning how to code.
Perken is offline   Reply With Quote
Old 11-11-2023, 10:38 AM   #53
MaXyM
Human being with feelings
 
Join Date: Aug 2018
Posts: 454
Default

It doesn’t surprise me at all that it’s unable to produce quality code. The quality comes from many factors, paradigms mapped onto context etc.
But it makes up things which doesn’t exist. It suggests solutions which don’t work because of usage of functions which have never existed.

And with Bard it’s even worse. It pulls conclusions having nothing common with reality.

What scares me more than inability of producing valid code is that people will learn those bullshits from AI. Just imagine billions of ppl fed by false information
MaXyM is offline   Reply With Quote
Old 11-11-2023, 10:42 AM   #54
MonkeyBars
Human being with feelings
 
MonkeyBars's Avatar
 
Join Date: Feb 2016
Location: Hollyweird
Posts: 2,637
Default

Quote:
Originally Posted by MaXyM View Post
Just imagine billions of ppl fed by false information
Imo that is a precise description of today's media landscape
MonkeyBars is offline   Reply With Quote
Old 11-11-2023, 12:48 PM   #55
MaXyM
Human being with feelings
 
Join Date: Aug 2018
Posts: 454
Default

To some extent yes. But you can opt in or out for specific media.

I'm talking about something else: Google Search offers answers from Bard as an option to their regular search. Till now you consenciously used Google Search expecting true or no results. But Bard returns false results. Made up ones.
MaXyM is offline   Reply With Quote
Old 11-14-2023, 05:26 PM   #56
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

Quote:
Originally Posted by MaXyM View Post
It doesn’t surprise me at all that it’s unable to produce quality code.
It's because it isn't trained so well on Reaper docs etc. And... limiting wrong answers will also limit correct answers, it's a side-effect. That said, based on the recent update, before long someone will be able to create a reaper "GPT" and it will likely be able to do a very good job if constructed and trained properly.

I've had it write some quite complex code near the driver level for video etc. (non-reaper), and it would either get it right the first time or after a few follow ups and it would be correct.

Little or nothing releases without issues, go check out Reaper 1.0.
__________________
Music is what feelings sound like.
karbomusic is offline   Reply With Quote
Old 11-24-2023, 09:43 AM   #57
Lynx_TWO
Human being with feelings
 
Lynx_TWO's Avatar
 
Join Date: Dec 2019
Location: St Petersburg FL
Posts: 999
Default ChatGPT 4 updates

The update allows you to create custom ChatGPT instances and allows you to upload documents as part of the prompt. Apparently, the new update can process up to 300 pages of text before generating a response, so I suppose if you were to find and upload LUA’s entire codebase and the documentation as it’s custom instructions, perhaps we'd have better output…
__________________
My mixes from the Cambridge multitracks library
SoundCloud link & Youtube (ThemTube?) link
My preferred adjectives are “Handsome” and “Brilliant”
Lynx_TWO is offline   Reply With Quote
Old 11-27-2023, 01:49 PM   #58
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,269
Default

Quote:
Originally Posted by Lynx_TWO View Post
The update allows you to create custom ChatGPT instances and allows you to upload documents as part of the prompt. Apparently, the new update can process up to 300 pages of text before generating a response, so I suppose if you were to find and upload LUA’s entire codebase and the documentation as it’s custom instructions, perhaps we'd have better output…
Yea nice, ^this is what I meant when I said this:

'before long someone will be able to create a reaper "GPT"'

I'm sure it is ChatGPT subscribers only? But, you'd be able to publish/share your Reaper GPT creation and others could use it IIRC.
__________________
Music is what feelings sound like.
karbomusic is offline   Reply With Quote
Old 01-10-2024, 02:39 PM   #59
SymboliC
Human being with feelings
 
SymboliC's Avatar
 
Join Date: Dec 2013
Posts: 289
Default

I made Chat GPT 3.5(free one) to write various scripts for me in the last 2 weeks time.

While having myself previously trained in C# helped a lot to instruct it to correct or refine its mistakes, I had to append to ReaScriptAPI back and forth a lot since I have no background for LUA or core concepts of MIDI programming other than working with it inside Reaper environment.

The thing is, you have to be ready to go mad to explain some simplest concepts to it while it can also create/write much more complex pieces of code without driving you crazy. It's a little hit&miss thing.

If you are lazy but have a broad idea on general concepts of coding/programming and have a nice framework to begin with, it is helpful and can act as a scribe to organize and write the lines on behalf of you.

On the other hand, none of these (ChatGPT + beginner level coder) will surely replace an advanced programmer. We're still far from that idea.

In the upcoming days, I'll share my scripts which include but not limited to,

* Reducing points inside MIDI CC lanes
* Dynamic Media PLayback Offset on the fly for multiple tracks.
__________________
Just music. Nothing more, nothing less.
SymboliC is offline   Reply With Quote
Old 01-10-2024, 03:35 PM   #60
MonkeyBars
Human being with feelings
 
MonkeyBars's Avatar
 
Join Date: Feb 2016
Location: Hollyweird
Posts: 2,637
Default

I've found 4.0 produces very noticeably better code than 3.5.
MonkeyBars is offline   Reply With Quote
Old 01-10-2024, 04:13 PM   #61
woggle
Human being with feelings
 
Join Date: Nov 2015
Posts: 374
Default

has been useless for me - I posted up the script it gave me for help but so far noone has commented so I am not sure what the problems are - but none of the things I have tried has worked. The output certainly looked like code that should work so it might be something very trivial

Last edited by woggle; 01-10-2024 at 04:23 PM.
woggle is offline   Reply With Quote
Old 01-10-2024, 04:55 PM   #62
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

Quote:
The output certainly looked like code that should work so it might be something very trivial

Quote:
function MakeGreatScript()
return true

end

script = MakeGreatScript()
print( script and "success!" )
---
"success!"

(funny thing, contrary to chatGPT, this is actually working code &#129315
X-Raym is offline   Reply With Quote
Old 01-10-2024, 05:20 PM   #63
woggle
Human being with feelings
 
Join Date: Nov 2015
Posts: 374
Default

Quote:
Originally Posted by X-Raym View Post
(funny thing, contrary to chatGPT, this is actually working code &#129315
haha - well it is a couple of decades at least since I scripted anything (generative midi in Matlab that could do things like take the notes from Vivaldi's 4 seasons and play them using the rhythmic structure of Enter Sandman) so I have forgotten pretty much everything. Even so I think I will be quicker getting up to speed manually than relying on AI
or I will pay someone to make what should be something pretty simple for a coder who knows Reaper scripting

Last edited by woggle; 01-10-2024 at 06:32 PM.
woggle is offline   Reply With Quote
Old 01-10-2024, 11:36 PM   #64
Pink Wool
Human being with feelings
 
Pink Wool's Avatar
 
Join Date: Apr 2020
Posts: 1,519
Default

Again, if you want ChatGPT to write a functioning script for Reaper, you need to use the version 4 AND feed it data (Reaper API functions, perhaps a few scripts etc.) to get it to understand how lua or eel scripts work in Reaper. There's no magic behind it. Based on the input, it will output.
__________________
Live simply so that others can simply live
Pink Wool is online now   Reply With Quote
Old 01-11-2024, 02:15 AM   #65
SymboliC
Human being with feelings
 
SymboliC's Avatar
 
Join Date: Dec 2013
Posts: 289
Default

Quote:
Originally Posted by woggle View Post
Even so I think I will be quicker getting up to speed manually than relying on AI
or I will pay someone to make what should be something pretty simple for a coder who knows Reaper scripting
By using ChatGPT and looking at Reascript API here and there to correct it, you already start learning LUA and other things related to MIDI and Reaper.

I was clueless about it all and thanks to the fights that I've picked up with ChatGPT during our sessions, I can finally start to write my own scirpts manually
__________________
Just music. Nothing more, nothing less.
SymboliC is offline   Reply With Quote
Old 01-11-2024, 02:24 AM   #66
woggle
Human being with feelings
 
Join Date: Nov 2015
Posts: 374
Default

Quote:
Originally Posted by SymboliC View Post
By using ChatGPT and looking at Reascript API here and there to correct it, you already start learning LUA and other things related to MIDI and Reaper.

I was clueless about it all and thanks to the fights that I've picked up with ChatGPT during our sessions, I can finally start to write my own scirpts manually
it would be quicker for me to learn LUA using LUA tutorials I think. I struggled to find good tutorial material for Reaper script particularly MIDI scripts. They are probably out there but I did not find anything much to suit what I was wanting.

I will persist tho - for me I think a couple of classes / back and forths with a good coder would be enough to get me started given I already have a little understand how programming works (albeit from long ago)

Last edited by woggle; 01-11-2024 at 02:39 AM.
woggle is offline   Reply With Quote
Old 01-15-2024, 05:55 AM   #67
Lynx_TWO
Human being with feelings
 
Lynx_TWO's Avatar
 
Join Date: Dec 2019
Location: St Petersburg FL
Posts: 999
Default

Quote:
Originally Posted by MonkeyBars View Post
I've found 4.0 produces very noticeably better code than 3.5.
Check out Grimoire

https://chat.openai.com/g/g-n7Rs0IK86-grimoire

ChatGPT purposed for programming specifically
__________________
My mixes from the Cambridge multitracks library
SoundCloud link & Youtube (ThemTube?) link
My preferred adjectives are “Handsome” and “Brilliant”
Lynx_TWO is offline   Reply With Quote
Old 01-15-2024, 06:43 AM   #68
PitchSlap
Human being with feelings
 
PitchSlap's Avatar
 
Join Date: Jan 2008
Location: Vancouver, BC
Posts: 3,795
Default

Quote:
Originally Posted by Lynx_TWO View Post
Check out Grimoire
https://chat.openai.com/g/g-n7Rs0IK86-grimoire
ChatGPT purposed for programming specifically
This is the one I've been using:
Professional Coder (Auto programming): A gpt expert at solving programming problems, automatic programming, one-click project generation.

Heard good things about Grimore, but have yet to try it so can't comment on how they compare.
__________________
FRs: v5 Media Explorer Requests, Global Quantization, Session View
Win10 Pro 64-bit, Reaper 6(x64), AMD 3950x, Aorus X570 Master, 64GB DDR4 3600, PowerColor Red Devil 5700XT, EVO 970 2TB, 10TB HD, Define R6
PitchSlap is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:48 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.