Page 6 of 7

Re: LMMS needs coders

Posted: Tue Mar 29, 2022 2:54 pm
by Gps
Found something:

This is basically how all C++ programs start, and I even understand it somewhat.

Code: Select all

#include <iostream>
using namespace std;

int main ()
Also bookmarked that site:

https://www.cplusplus.com/doc/tutorial/ ... structure/

Now gonna watch that tutorial again, but this time I will be typing along.

Re: LMMS needs coders

Posted: Tue Mar 29, 2022 4:46 pm
by musikbear
Gps wrote:
Tue Mar 29, 2022 2:54 pm
Found something:

This is basically how all C++ programs start, and I even understand it somewhat.

Code: Select all

#include <iostream>
using namespace std;

int main ()
Also bookmarked that site:

https://www.cplusplus.com/doc/tutorial/ ... structure/

Now gonna watch that tutorial again, but this time I will be typing along.
Njaaaj..
All console applications must have a starting point, and that is called main
But you also must include two brackets.
In most computer languages you have begin & end
That is not the case in c++
{ means begin
} means end
But c++ uses this separation for the perhaps most important structural in c++
scope!
immediately you get a out-of-scope error, look for missing or surplus brackets!

So all console c++ programs has this structure:

Code: Select all

#include // Libraries that offers some feature you need -eg Gives you service in a black box
	      // If the bracket is angled the library is a standard library
	      // if the bracket is missing / replaced with " quotes -eg: #include "myString.h"
	      // the library is non-standard and placed together with the main file
	      // Also possible : #include "c:\ allMyOwnCPPlibs\myString.h"
int main()
{

}
....
Forgot
namespace is a tricky one. It is actually a 'cheat' that allow you to use shorthand for a library-service
When we declare

Code: Select all

using namespace std;
we do not have to call std for every use of std
We actually do need to call like this

Code: Select all

std::cout<<
But declaring

Code: Select all

using namespace std;
now a shorthand is possible:

Code: Select all

cout<<
Lovely! I spared myself writing
std::
...but
IF we now be accident uses a keyword from inside std-library as variable, we have created ambiguousness -or 'pollution' !
Watch this :
https://stackoverflow.com/questions/145 ... d-practice

(i do it anywitch : )

Re: LMMS needs coders

Posted: Wed Mar 30, 2022 12:14 am
by Gps
I am still wondering about, that qt sdk.

( was already wondering if its something like #include qt sdk )

But for now just gonna do bare C++.

So it fine to use namespace::std but not in the header part of a file.

I also somewhat understand why.

While typing this , I am starting to wonder, why I don't look at how the LMMS code file starts.

So for now std::cout and std::cin

Re: LMMS needs coders

Posted: Wed Mar 30, 2022 4:12 pm
by musikbear
Gps wrote:
Wed Mar 30, 2022 12:14 am
While typing this , I am starting to wonder, why I don't look at how the LMMS code file starts.
In case you DO, please tell.............. 🙄

Re: LMMS needs coders

Posted: Thu Mar 31, 2022 12:52 am
by Gps
LOL, well let me me put it like this.

I tried and failed.

I am starting to get this uncomfortable feeling there is no one code file. Been searching for that before.

I think I found parts at my pc though....


Also found this:
https://www.youtube.com/watch?v=n5IhCrGASP4

Some thing to code if I get bored one day. (swing)

Jeremy Clarkson quote: how hard can it be ? :P
All we need, a dial to move notes and "some" code.

Seems its only about the volume of the notes and the position.

Re: LMMS needs coders

Posted: Thu Mar 31, 2022 3:43 pm
by musikbear
Gps wrote:
Thu Mar 31, 2022 12:52 am

Some thing to code if I get bored one day. (swing)
Seems its only about the volume of the notes and the position.
Partly, but there are several types
The method should make it possible to shift 2. and 4. beat, but preserve the 1. and 3. (onbeats)
A bit tricky. The way to save new positions in files are also a little tricky. Should it be saved new note positions, or a variable that shifts notes as they load.

Re: LMMS needs coders

Posted: Thu Mar 31, 2022 8:31 pm
by Gps
Yes indeed.

I also noticed the guy in the vid turning those dials and nothing happened.

He first needed to select the notes he wanted to apply swing too, and ended up with leaving the 1th and 3rd alone.

Then he does it without that plugin, and that way we can already do this in LMMS too.
Moving the 2nd and 4th note by hand.

I think it would make more sense for LMMS to remember the offset to the original note position.
Then even after the file is saved, we still can go back.

(And nobody can complain about it being a hacky solution) ;)

Me personal would not mind if only the new note position, is saved though.

Re: LMMS needs coders

Posted: Sat Apr 02, 2022 5:13 pm
by Gps
After a struggle of two days, I can finally do some C++ coding in K develop.

To others who want to learn C++, using Kdevelop is not that easy for people like us starting serious coding.

For just typing some C++ code, the link provided by Musikbear (gdb online) is much easier to use.

Kdevelop can do more then just C++ which makes it less easy to just start some C++ program.

Re: LMMS needs coders

Posted: Wed Apr 27, 2022 2:07 am
by HarryDerden
Hello. I'm a little off topic here, but I hope that at least you can recommend something to me. I need help from Java developers. If there are Java developers among you, then write to me.

Re: LMMS needs coders

Posted: Wed Apr 27, 2022 2:24 am
by entropius134
HarryDerden wrote:
Wed Apr 27, 2022 2:07 am
Hello. I'm a little off topic here, but I hope that at least you can recommend something to me. I need help from Java developers. If there are Java developers among you, then write to me.
Hello, if you haven't found Java developers yet, then you can contact here https://devoxsoftware.com/hire/hire-java-developers/ . If you have some serious project and you need a lot of specialists, then you can hire a whole team of specialists from them who will work on your product. I personally hired developers in the state of Java through this company. And if it's not a secret, what exactly do you want to develop?